package com.dalei.vdsmanager.security.service;

import java.util.Date;
import java.util.List;

import com.dalei.vdsmanager.security.dao.User;

public interface UserService {

	public void addUser(String userName, String password, boolean isEnabled,
			User createdBy, Date createdTime, List<Integer> roleIds);
	
	public boolean checkRepeat(String userName);
	
	public List<User> getUsers();
	
	public User getUserById(int id);
	
	public User getUserByUserName(String userName);
	
	public boolean changePassword(int id, String newPassword);
	
	public void removeUser(int id);
	
	public boolean validateUser(String userName, String password);
}
